<?php 

 header("Content-type: text/html; charset=utf-8");
require("conn.php");

$cishu = $_POST['cishu'];

$sql ="select * from pin where 1=1 ";
$sql=$sql." order by id desc "; 
$result = mysql_query($sql,$conn);

$arr = Array();
$k=0;

while ($row= mysql_fetch_assoc($result)) {
	$sinfer= $row;
	$sinfer['kaishi'] = date('Y-m-d H:i:s',$row['kaishi']);
	$arr[$k]  = $sinfer;
	$k++;
	
}

echo  json_encode($arr);